var express = require('express');
var router = express.Router();
var examineDao = require('../dao/examineDao')
var db = require('../config/basicConnection');
var $sqlCommands = require('../config/sqlCommand');

// var multer  = require('multer')
// var upload = multer({ dest: './public/files' })
/**
 * 用户增加的路由控制接口
 */
router.get('/', function(req, res, next) {
    res.render('application', { title: '' });
});

router.post('/findAllApply', function(req, res, next){
    examineDao.findAllApply(req,res,next)
})

router.post('/rejectApply', function(req, res, next){
    examineDao.rejectApply(req,res,next)
})

router.post('/passApply', function(req, res, next){
    examineDao.passApply(req,res,next)
})


module.exports = router;
